home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet Info 1994 March
/
Internet Info CD-ROM (Walnut Creek) (March 1994).iso
/
networking
/
ip
/
ka9q
/
MNetsrc.hqx
/
Mac TCP_IP Source v.33
/
ax_mbx.h
< prev
next >
Wrap
Text File
|
1989-01-13
|
1KB
|
34 lines
/* Defines for the ax.25 mailbox facility */
#define NUMMBX 10 /* max number of mailbox sessions */
#define MBXLINE 128 /* max length of line */
struct mbx {
int state ; /* mailbox state */
#define MBX_CMD 1 /* in command mode */
#define MBX_SUBJ 2 /* waiting for a subject line */
#define MBX_DATA 3 /* collecting the message */
int type ; /* type of connection */
#define MBX_AX25 1 /* ax25 connection */
#define MBX_NETROM 2 /* net/rom transport connection */
char name[10] ; /* Name of remote station */
union {
struct ax25_cb *ax25_cb ; /* ax.25 link control block */
struct nr4cb *nr4_cb ; /* net/rom link control block */
} cb ;
char *to ; /* To-address in form user or user@host */
char *tofrom ; /* Optional <from in to-address */
char *tomsgid ; /* Optional $msgid in to-address */
FILE *tfile ; /* Temporary file for message */
char line[MBXLINE+1] ; /* Room for null at end */
char *lp ; /* line pointer */
int mbnum ; /* which mailbox session is this? */
int mblforw ; /* flag: MBL abbreviated forwarding mode */
char stype ; /* BBS send command type (B,P,T, etc.) */
} ;
#define NULLMBX (struct mbx *)0
extern struct mbx *mbox[NUMMBX] ;
extern int ax25mbox ;